package com.pic.mgt.dao.haishin;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.pic.mgt.dao.BasicBusinessTargetActionInfoBean;
import com.pic.mgt.dao.IBusinessTargetActionDao;


public interface IHaishinBusinessTargetActionDao extends IBusinessTargetActionDao {
	// table 內的欄位名稱
	public static final String _targetFile = "target_file";	
	public static final String _result = "result";
	
	/**
	 * 與 findBasicBusinessTargetActionInfoListByUnitNameWithOrderByCreatingTimeDESC() 方法的差別,
	 * 是在於回傳的是  HaishinBasicBusinessTargetActionInfoBean.(多了 result 欄位屬性) 
	 * @param unitName
	 * @return
	 * @throws DataAccessException
	 */
	public List<HaishinBasicBusinessTargetActionInfoBean> findHaishinBasicBusinessTargetActionInfoListByUnitNameWithOrderByCreatingTimeDESC(String unitName)
	throws DataAccessException;
	
	public HaishinBasicBusinessTargetActionInfoBean findHaishinBasicBusinessTargetActionInfoByFilename(String filename) throws DataAccessException;
	
	public BasicBusinessTargetActionInfoBean findBasicBusinessTargetActionInfoByUnitName(String unitName)
	throws DataAccessException;
}
